<%--
  Created by IntelliJ IDEA.
  User: WCX
  Date: 2024/12/9
  Time: 19:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ page import="com.example.chapter9.ShanghusDao"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>删除商户信息</title>
</head>
<body>
<%
    request.setCharacterEncoding("utf-8");
    response.setContentType("text/html;charset=utf-8");
    String id =request.getParameter("id");
    System.out.print(id);
    ShanghusDao dao = new ShanghusDao();
    int row = dao.delete(Integer.parseInt(id));
    if (row > 0)
        response.sendRedirect("index.jsp");
    else
        //out.println("删除失败！");
%>

</body>
</html>